/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-09-20
 * Time: 11:31
 */
public class PrintInOreder {

    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(() -> {
            System.out.println('a');
        });

        Thread t2 = new Thread(() -> {
            System.out.println('b');
        });

        Thread t3 = new Thread(() -> {
            System.out.println('c');
        });

        t3.start();
        t3.join();
        t2.start();
        t2.join();
        t1.start();
    }
}
